home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (3rd Edition)
/
The Business Master (3rd Edition).iso
/
files
/
wordmisc
/
pcspell
/
speller2.doc
< prev
next >
Wrap
Text File
|
1988-03-29
|
8KB
|
150 lines
SPELLER2
AN ASCII FILE SPELL CHECKER
by
John Leeson
This spell checker works on ASCII files to create a list of misspelled or
possibly misspelled words.
Hardware requirements : IBM-PC or AT or compatible with 165k free memory
One or two disk drives or a hard disk (recommended)
Files on the disk include:
SPELLER2.EXE -- The spell checking program
SPELLUP2.EXE -- Program for updating spelling lists
SPELLCH2.EXE -- Program to verify SPELLER.LIS has no errors in it
SPELLER .LIS -- The master dictionary word list
SPELLER2.DOC -- This file
SPELL* .PA4 -- Turbo 4.0 Pascal source code for the .EXE programs
Note : If you have been using an earlier release of SPELLER then you can
continue to use your existing word list SPELLER.LIS. This version is fully
compatible with earlier versions.
The program is activated by the command
SPELLER2 [filespec] [filespec]
The first filespec parameter is the name of the text file to be spell checked.
If omitted then the program will ask for the name. The name may include a
drive specifier and/or a path in accordance with DOS syntax for a filespec.
The disk containing the text file must not be write protected since the
output file containing the list of possible misspelled words will be written
to the same disk as the source file. Also, the output file will have the same
name as the source file except it will have an extension of 'MIS'. If the
source file had an extension then the extension will be replaced by the '.MIS'
otherwise the '.MIS' will be appended to the name. The spelling list must be
in the same directory and drive as the program SPELLER2.EXE and this
directory must be either the default directory or else the DOS 'PATH' must be
set up to include the drive and path to the directory containing SPELLER2.EXE
and SPELLER.LIS.
The second filespec parameter is optional and if specified will select the
specified file as an auxiliary spelling list. As with the source file name
the filespec may contain a drive specifier and path. If the second parameter
is not specified or a carriage return only is typed in response to the request
for this file name then no auxiliary spelling list will be used. If the
specified file is not found then SPELLER will say so but go ahead and spell
check the document without using any aux wordlist.
When the program completes, it will have generated a file called 'name.MIS' on
your document disk. This file can be used to check the spelling of the
possibly misspelled words, hunt for and correct the words which are
misspelled, and then for updating the spelling check dictionary. I use
PC-Write (c) to edit my document then copy in the file 'name.MIS' at the start
of the document. Then I use the words in the list with the find/replace
function to find the word for correction.
After editing the file 'name.MIS' to remove the words which you don't want to
add to the spelling list, then this file can be used for updating the spelling
list. Run the program SPELLUP2 which adds the words in the file 'name.MIS' to
SPELLER.LIS. This is accomplished in SPELLUP2 by dynamically reading and
rewriting SPELLER.LIS. This allows for having a very large word list on a
single floppy disk system and still being able to update it. This is a change
from earlier versions that kept a backup copy of the spelling list on the
current dictionary disk. It is a very good idea to keep a separate backup copy
of the spelling list file in case something goes wrong.
SPELLUP2 is called with the command:
SPELLUP2 [filespec] [filespec]
The first parameter is the DOS drive, path and name of the file with the list
of words to add to the spelling list. If omitted then the program will ask
for it.
The second parameter is the name of the dictionary list to be updated. This
name may also include a DOS drive and path specification. If this parameter
is omitted then the dictionary file SPELLER.LIS will be updated. This
addition to SPELLER allows for updating an auxiliary dictionary file.
There is another little program on the disk which is called SPELLCH2.EXE. This
program just goes through the dictionary looking for words which are not in
alphabetical order and counting the dictionary words as it goes. It prints
pairs of words to the screen which are not in the correct sequence if it
finds any. When it gets done you can use your favorite line editor to edit
the dictionary file to eliminate the out of place or duplicate words. The
command line for SPELLCH2 can contain one optional parameter -- the DOS
filespec of the dictionary file to be checked. SPELLER.LIS is assumed if no
parameter is specified.
If you have been using the BASIC program by Andy Wildenberg called PC-SPELL
version 1.15 (or later?) and want to keep using the list of words which you
have already established as your dictionary then that can be done. It is
recommended that you use SPELLER to spell check your PC-SPELL spelling list
and then use SPELLUP2 to update the SPELLER.LIS file. In this way you will get
the combined total of both spelling lists and also get rid of any duplicate or
out of place words in the PC-SPELL dictionary file which PC-SPELL sometimes
adds. You might also want to check the spelling of the word list you get out
of the spell check of the PC-SPELL dictionary. The copy I downloaded a long
time ago had a lot of misspelled words in the list. It takes a lot of time to
check this list against a dictionary but it is worthwhile to get an accurate
spelling checker.
VERSION INFO:
Original release: SPELLER, May, 1985
Window version : SPELLERW, Mar, 1986
This version removed the on-screen word counters in order to be compatible
with WINDOWS applications. It also was compiled with Turbo 3.1 and was about
25% faster.
Second release : SPELLER2, Mar, 1988
This version makes a number of improvements to the earlier release.
1. Compiled with Turbo 4.0. Nearly twice as fast as the original release.
2. Added the provisions for an auxiliary dictionary.
3. SPELLUP2 now does the dynamic update of the spelling list to conserve disk
space. Also allows the auxiliary dictionary to be specified for updating.
4. SPELLUP2 will now DELETE a word from the spelling list if it is equal to a
word that is in the dictionary file. This allows you to remove words that you
don't want in the dictionary (you may find misspelled words or accidentally
add words that you do not want there).
Send comments or whatever to me at the below address if you wish to. Comments
or suggestions for improvements are always appreciated. Suggestions submitted
which include a $10.00 donation will receive top priority for consideration
and entitle the sender to receive a disk with an updated version of SPELLER
when improvements are made.
John Leeson
466 Merritt Rd.
Central City, Ia. 52214
NOTE: PC-Write is (C) Copyright 1983 by Bob Wallace, Quicksoft.
Turbo 4.0 is (C) Copyright 1987 by Borland International.
SPELLER, SPELLERW and SPELLER2 are released to the public domain. You are
welcome to copy and freely distribute and use these programs with no fee or
contribution to the author or any other agency. No fee is to be charged for
distributing this program other than a nominal copying or access fee not to
exceed $10.